const path = require('path')
// const CompressionPlugin = require("compression-webpack-plugin")
function resolve(dir) {
	return path.join(__dirname, dir)
}

module.exports = {
    lintOnSave: false,
    //打包的路径
    publicPath: './',
    // webpack配置
    configureWebpack: {
        // 开发生产共同配置，新增一些别名设置
        resolve: {
            // 别名配置
            alias: {
                '@': path.resolve('src')
            }
        }
    },
    chainWebpack: (config) => {
        config.resolve.alias.set('static',resolve('public/static'))
      }
};
